# 递归添加nas_service目录下所有的cpp文件
file(GLOB_RECURSE nas_resource_srcs *.cpp)

add_library(nas_resource_obj
    OBJECT
    ${nas_resource_srcs}
)

target_include_directories(nas_resource_obj
PRIVATE
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${NAS_ROOT_PATH}/src/common/application
    ${NAS_ROOT_PATH}/src/common/constant
    ${NAS_ROOT_PATH}/src/utils
    ${NAS_ROOT_PATH}/src
    ${OPENSRC_THRIFT_INC_PATH}/thrift
    ${OPENSRC_THRIFT_INC_PATH}
    ${OPEN_SRC_PATH}/boost_rel/include
    ${MODULE_ROOT_PATH}/src
    ${MODULE_ROOT_PATH}/src/libsmb_ctx
    ${MODULE_ROOT_PATH}/src/log
    ${MODULE_ROOT_PATH}/third_open_src/lsmb2_rel/include
    ${OPENSRC_THRIFT_INC_PATH}
    ${OPEN_SRC_PATH}/jsoncpp_rel/include
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc
)

target_link_libraries(nas_resource_obj
    PRIVATE
    common_dep
    application_obj
)